{include file="Public:header2"/}
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <form method="get" class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <div class="layui-input-inline" style="width: 150px;margin-left: 0px">
                        <input type="text" name="user_id" value="{$Request.get.user_id}" placeholder="请输入盒子id" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline" style="width: 180px;margin-left: 0px">
                        <select name="type" style="width:100%">
                            <option value="">--请选择盒子类型--</option>
                            <option value="2" {if condition="$Request.get.type eq 2"}selected{/if} check>无限赏</option>
                            <option value="1" {if condition="$Request.get.type eq 1"}selected{/if}>一番赏</option>
                            <option value="3" {if condition="$Request.get.type eq 3"}selected{/if}>擂台赏</option>
                
                            <!--<option value="4" {if condition="$Request.get.type eq 4"}selected{/if}>抽卡机</option>-->
                            <option value="5" {if condition="$Request.get.type eq 5"}selected{/if}>积分赏</option>
                            <option value="6" {if condition="$Request.get.type eq 6"}selected{/if}>全局赏</option>
                            <option value="8" {if condition="$Request.get.type eq 8"}selected{/if}>领主赏</option>
                            <option value="9" {if condition="$Request.get.type eq 9"}selected{/if}>连击赏</option>
                            <option value="11" {if condition="$Request.get.type eq 11"}selected{/if}>闯关赏</option>

                        </select>
                    </div>
                </div>
                  <!--`order_type` 1一番赏 2无限赏 3擂台赏 4抽卡机 5积分赏 6全局赏 7福利盲盒  8领主赏  9连击赏 10权益领取',-->
                <!--<div class="layui-inline">-->
                <!--    <div class="layui-input-inline" style="width: 150px;margin-left: 0px">-->
                <!--        <input type="text" name="mobile" value="{$Request.get.mobile}" placeholder="请输入手机号" autocomplete="off" class="layui-input">-->
                <!--    </div>-->
                <!--</div>-->
                <!--<div class="layui-inline" >-->
                <!--    <div class="layui-input-inline" style="width: 300px;margin-left: 0px">-->
                <!--        <input type="text" id="addtime" name="addtime" value="{$Request.get.addtime}" class="layui-input" placeholder="登录时间" autocomplete="off" >-->
                <!--    </div>-->
                <!--</div>-->
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-user-front-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>
            </div>
        </form>

        <div class="layui-card-body">
            <xblock>
                <div style="padding-bottom: 10px;">
                    <a class="layui-btn" href="{:url('/admin/infinite_list_daochu',['type'=>$type, 'user_id'=>$user_id])}">导出</a> <label for="" style ="color:red">数据量较大请先选择筛选条件</label>
                    <span style="line-height:40px;float:right;">共有数据： {$count}条</span>
                </div>
            </xblock>
            <table class="layui-table">
                <thead>
                <tr>
                    <!--                    <th>总计</th>-->
                </tr>
                <tr>
                    <th>盒子信息</th>
                    <th>无限池消费金额</th>
                    <th>无限池兑换金额</th>
                    <th>盈亏</th>
                    <th>盒子类型</th>
                    <th>变化时间</th>
                </tr>
                </thead>
                <tbody>
                {volist name="total_money" id="vo"}
                <tr>
                    <td>总计</td>
                    <td>{$vo['goods_price_total']}</td>
                    <td>{$vo['goods_money_total']}</td>
                    <td>{$vo['ks_money_total']}</td>

                </tr>
                {/volist}
                {volist name="list" id="vo"}
                <tr>
                    <td style="text-align: left">
                        <div style="display: flex;">
                            <div><img src="{:imageUrl($vo['imgurl'])}" alt="" width="50px" height="50px"></div>
                            <div style="margin-left: 10px">

                                <p style="color: #666666ba;font-size: 9px">{$vo['title']}</p>
                                <p style="color: #666666ba;font-size: 9px">价格：{$vo['price']}</p>
                            </div>
                        </div>
                    </td>
                    <td>{$vo['goods_price']}</td>
                    <td>{$vo['goods_money']}</td>
                    <td>{$vo['ks_money']}</td>
                    
                    <td>
                        {if condition="$vo['type'] eq 1"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">一番赏</button>
                        {elseif condition="$vo['type'] eq 2"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">无限赏</button>
                        {elseif condition="$vo['type'] eq 3"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">擂台赏</button>
                        {elseif condition="$vo['type'] eq 5"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">积分赏</button>
                        {elseif condition="$vo['type'] eq 6"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">全局赏</button>
                        {elseif condition="$vo['type'] eq 8"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">领主赏</button>
                        {elseif condition="$vo['type'] eq 9"}
                        <button class="layui-btn layui-btn-normal layui-btn-radius layui-btn-sm">连击赏</button>
                        {/if}
                    </td>
                    <td>{$vo['addtime']|date="Y-m-d H:i:s"}</td>
                </tr>
                {/volist}
                {if condition="empty($list)"}
                <tr><td colspan='10' style="text-align:center;">暂时没有数据！</td></tr>
                {/if}
                </tbody>
            </table>
            <div class="my_page layui-box layui-laypage layui-laypage-default">
                {$page|raw}
            </div>
        </div>
    </div>
</div>
{include file="Public:footer"/}
<script type="text/javascript">
    layui.use(['table','laydate'], function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#addtime'
            ,type: 'datetime'
            ,range: '-'
            ,format: 'yyyy-MM-dd'
        })
    });



</script>
</body>
</html>


